import { defineView } from "@/routers/tools.mjs";

/**
 * @type {DefineView}
 */
const ProviderServiceView = defineView({
  controller: class {
    static $inject = ["$scope", "ExamService"];

    /**
     * @param {ng.IScope} $scope
     * @param {{syn: string}} ExamService
     */
    constructor($scope, ExamService) {
      this.$scope = $scope;
      this.ExamService = ExamService;
    }

    handleClick() {
      console.log(this);
    }
  },
  controllerAs: "$ctrl",
  template: /* HTML */ html`
    <div>
      <h1>ProvideServiceView</h1>
      <p>{{ $ctrl.ExamService.syn }}</p>
      ${DebugButtonHTML("$ctrl")}
    </div>
  `,
});

export default ProviderServiceView;
